﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERP.Domain.System
{
    /// <summary>
    /// 角色表实体类
    /// </summary>
    public class Role
    {
        /// <summary>
        /// 角色ID（主键，自增）
        /// </summary>
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 角色编号（唯一标识）
        /// </summary>
        [StringLength(50)]
        [Required]
        public string RoleNo { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        [StringLength(100)]
        [Required]
        public string RoleName { get; set; }

        /// <summary>
        /// 角色描述
        /// </summary>
        [StringLength(500)]
        public string RoleDescription { get; set; }

        /// <summary>
        /// 角色状态（0-禁用，1-启用）
        /// </summary>
        public bool RoleStatus { get; set; } = true;
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDeleted { get; set; } = false;
    }
}
